<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>谷粒商城问题记录</title>
</head>
<body>
<div>
    <h3>谷粒商城2022.7.26号</h3>
    <p>
        ===========各个版本的搭配============== <br/>
        1.springboot版本
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.2</version>
        <br/>

        2.spring-cloud-alibaba 版本<br/>
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-alibaba-dependencies</artifactId>
            <version>2021.1</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
        <br/>

        3.spring-cloud 版本 <br/>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>2020.0.4</version>
        </dependency>
        <br/>

        三级分类的前端:<br/>
        1.人人网的springboot版本太低,需要注册到nacos,启动报错,修改<br/>
        <version>2.3.4.RELEASE</version>
        2.网关的配置类:======================<br/>
        @Configuration<br/>
        public class GulimallCorsConfiguration {<br/>
        ....<br/>
        //1、配置跨域=========================<br/>
        //corsConfiguration.addAllowedOrigin("*"); 这里的版本可能有问题<br/>
        corsConfiguration.addAllowedOriginPattern("*"); 按照csdn查出来修改了设置<br/>
        ....<br/>
        }
        }
    </p>
</div>


</body>
</html>
